﻿@model IEnumerable<Vms.Web.Models.LIB_CONTENT_IMG>
@{
    ViewBag.Title = "  SearchContentImg";
}
<h2>
    SearchContentImg</h2>

@using (Html.BeginForm()){    
         <p> Title: @Html.TextBox("SearchString")
         <input class="btn btn-success" type="submit" value="Filter" /></p> 
        }
<table class="table table-bordered table-striped">
    <tr>
         <th>
            Name
        </th>
        <th>
            ImgFileName
        </th>
        <th>
            Fomat
        </th>
        <th>
            Img_x
        </th>
        <th>
            Img_y
        </th>
        <th>
            Img_Width
        </th>
        <th>
            Img_Height
        </th>
        <th>
            DisplayMode
        </th>
        <th>
            RunSpeed
        </th>
        <th>
            ShowTime
        </th>
        <th>
            LibContent_Id
        </th>
        <th>
            LIB_CONTENT
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @item.Name
            </td>
            <td>
                @item.ImgFileName
            </td>
            <td>
                @item.Fomat
            </td>
            <td>
                @item.Img_x
            </td>
            <td>
                @item.Img_y
            </td>
            <td>
                @item.Img_Width
            </td>
            <td>
                @item.Img_Height
            </td>
            <td>
                @item.DisplayMode
            </td>
            <td>
                @item.RunSpeed
            </td>
            <td>
                @item.ShowTime
            </td>
            <td>
                @item.LibContent_Id
            </td>
            <td>
                @(item.LIB_CONTENT == null ? "None" : item.LIB_CONTENT.Name)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
                @Html.ActionLink("Details", "Details", new { id = item.Id }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.Id })
            </td>
        </tr>
    }
</table>
<div>
    @Html.ActionLink("Back to list", "Index")
</div>